#include "StdAfx.h"
#include "ChatSocket.h"

CChatSocket::CChatSocket(void)
{
	ZeroMemory(m_pBuffer,CHAT_BUFFER_SIZE+2);
}

CChatSocket::~CChatSocket(void)
{
}
//Notifies a listening socket that it can accept pending connection requests by calling Accept.
void CChatSocket::OnAccept(int nErrorCode)
{
	CAsyncSocketEx::OnAccept(nErrorCode);
}

//Notifies a socket that the socket connected to it has closed.
void CChatSocket::OnClose(int nErrorCode)
{
	CAsyncSocketEx::OnClose(nErrorCode);
}

//Notifies a connecting socket that the connection attempt is complete, whether successfully or in error.
void CChatSocket::OnConnect(int nErrorCode)
{
	CAsyncSocketEx::OnConnect(nErrorCode);
}

//Notifies a listening socket that there is data to be retrieved by calling Receive.
void CChatSocket::OnReceive(int nErrorCode)
{
	CAsyncSocketEx::OnReceive(nErrorCode);
}

//Notifies a socket that it can send data by calling Send.
void CChatSocket::OnSend(int nErrorCode)
{
	CAsyncSocketEx::OnSend(nErrorCode);
}

BOOL CChatSocket::OnHostNameResolved(const SOCKADDR_IN *pSockAddr)
{
	BOOL bRet = CAsyncSocketEx::OnHostNameResolved(pSockAddr);
	return bRet;
}

void CChatSocket::OnFailConnect(int nErrorCode)
{
	CAsyncSocketEx::OnFailConnect(nErrorCode);
}